package com.autologistics.util;

import java.util.*;
import java.io.*;

public class FileUtil {
	
	private FileInputStream input;
	private FileOutputStream output;
	
	public void upload(String fileName,File uploadFile) throws Exception{
		input = new FileInputStream(uploadFile);
		output = new FileOutputStream(fileName);
		byte [] buffer = new byte[GobalValue.DATASIZE];
		int len = 0;
		while((len = input.read(buffer)) > 0){
			output.write(buffer);
		}
		output.close();
		input.close();
	}

}
